home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / Szyfrowanie danych / MaxCrypt Security suite / MSS_v2_Setup.exe / MCHelp.chm / jsrelative.js < prev    next >
Text File  |  2006-07-04  |  267b  |  13 lines

  1. function relativelnk(fn) {
  2. var X, Y, sl, a, ra, link;
  3. ra = /:/;
  4. a = location.href.search(ra);
  5. if (a == 2)
  6. X = 14;
  7. else
  8. X = 7;
  9. sl = "\\";
  10. Y = location.href.lastIndexOf(sl) + 1;
  11. link = 'file:///' + location.href.substring(X, Y) + fn;
  12. location.href = link;
  13. }